<?php 
class admin extends base{
	public function __construct(){
		$this->db = new db(U_HOST, U_USER, U_PASS, U_DATA);
		$this->_uc = true;
	}
	
	public function getAdmin($name, $pass){
		return $this->db->getRow('SELECT id, purview, name FROM '.$this->table('admin').' WHERE name="'.$name.'" AND pass="'.$pass.'"');
	}
}
?>